#ifndef KMNETCONNECTEDCLIENT_H
#define KMNETCONNECTEDCLIENT_H

#include <enet/enet.h>
#include "KMNetMsgOut.h"

class KMNetMsgOut;

class KMNetConnectedClient
{
public:
    KMNetConnectedClient(ENetPeer *peer);
    virtual ~KMNetConnectedClient();
    bool isConnected();
    int getIP();
    void send(const KMNetMsgOut &msg,
              bool reliable = true,
              unsigned char channel = 0x00);
    void disconnect(const KMNetMsgOut &msg);
protected:
private:
    ENetPeer *mPeer;
};

#endif
